package org.jeecg.modules.inventory.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.inventory.entity.BussInventory;
import org.jeecg.modules.inventory.entity.BussInventoryInoutDetails;
import org.jeecg.modules.inventory.mapper.BussInventoryInoutDetailsMapper;
import org.jeecg.modules.inventory.service.IBussInventoryInoutDetailsService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 库存出入库明细
 * @Author: jeecg-boot
 * @Date:   2024-07-01
 * @Version: V1.0
 */
@Service
public class BussInventoryInoutDetailsServiceImpl extends ServiceImpl<BussInventoryInoutDetailsMapper, BussInventoryInoutDetails> implements IBussInventoryInoutDetailsService {
	
	@Autowired
	private BussInventoryInoutDetailsMapper bussInventoryInoutDetailsMapper;
	
	@Override
	public List<BussInventoryInoutDetails> selectByMainId(String warehouseId,String materialId) {
		return bussInventoryInoutDetailsMapper.selectByMainId(warehouseId,materialId);
	}

	@Override
	public IPage<BussInventoryInoutDetails> selectByDetailId(Page<BussInventoryInoutDetails> page,String mainId) {
		return bussInventoryInoutDetailsMapper.selectByDetailId(page,mainId);
	}
}
